﻿<TabItem x:Class="MangaEplision.MangaInfoTab"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="430" d:DesignWidth="604">
    <!--<TabItem.Header>
        <Grid Height="20">
            <Label Content="{Binding Header}"/>
            <Ellipse Fill="Red" Height="20" Width="20" HorizontalAlignment="Right">
            </Ellipse>
        </Grid>
    </TabItem.Header> -->
    <Grid Background="LightGray">
        <Grid.RowDefinitions>
            <RowDefinition Height="200" />
            <RowDefinition Height="143*" />
        </Grid.RowDefinitions>
        <Grid Name="grid1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="230" />
                <ColumnDefinition Width="150*" />
            </Grid.ColumnDefinitions>
            <GroupBox Header="Manga Image" Margin="6,0,0,6" Name="groupBox1">
                <Grid>
                    <Image Margin="6,6,15,6" Name="image1" Stretch="Fill" />
                </Grid>
            </GroupBox>
            <GroupBox Grid.Column="1" Margin="7,6,0,6" Name="groupBox2">
                <GroupBox.Header>
                    <Label Content="Manga Title" Name="MangaTitle" FontSize="20"/>
                </GroupBox.Header>
                <Grid>
                    <RichTextBox IsReadOnly="True" IsReadOnlyCaretVisible="False" Name="descbox" ScrollViewer.HorizontalScrollBarVisibility="Auto" Margin="0,0,0,88" BorderThickness="0" />
                    <Separator Margin="3,0,0,5" Name="separator1"/>
                    <Grid Margin="3,81,0,6" Name="grid2">
                        
                    </Grid>
                </Grid>
            </GroupBox>
        </Grid>
        <Grid Grid.Row="1" Margin="6,0" Name="grid3">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="352*" />
                <ColumnDefinition Width="240*" />
            </Grid.ColumnDefinitions>
            <GridSplitter Margin="6,0,9,6" Name="gridSplitter1" Height="152" VerticalAlignment="Bottom" />
        </Grid>
        <GroupBox Header="Volumes" Margin="6,0,255,6" Name="groupBox3" Grid.Row="1">
            <Grid>
                <ListView Name="volumelistbox">
                    <ListView.View>
                        <GridView>
                            <GridViewColumn Header="Book Number" Width="80" DisplayMemberBinding="{Binding ID}"/>
                            <GridViewColumn Header="Book Name"  DisplayMemberBinding="{Binding Name}"/>
                            <GridViewColumn Header="Release Date">
                                <GridViewColumn.CellTemplate>
                                    <DataTemplate>
                                        <Grid>
                                            <DockPanel>
                                                <Button Name="ViewBtn" Click="ViewBtn_Click" Content="{Binding ID}">
                                                    <Button.Template>
                                                        <ControlTemplate>
                                                            <Image Source="/MangaEplision;component/Resources/1295281691_viewmag.png" ToolTip="View this book." Width="24" Height="24" Cursor="Hand" ForceCursor="True"></Image>
                                                        </ControlTemplate>
                                                    </Button.Template>
                                                </Button>
                                                <Button Name="DownloadBtn" Click="DownloadBtn_Click">
                                                    <Button.Template>
                                                        <ControlTemplate>
                                                            <Image Source="/MangaEplision;component/Resources/1295281714_folder_download.png" ToolTip="Download this book." Width="24" Height="24" Cursor="Hand" ForceCursor="True"></Image>
                                                        </ControlTemplate>
                                                    </Button.Template>
                                                </Button>
                                                <Label Content="{Binding ReleaseDate}"/>
                                            </DockPanel>
                                        </Grid>
                                    </DataTemplate>
                                </GridViewColumn.CellTemplate>
                            </GridViewColumn>
                        </GridView>
                    </ListView.View>
                </ListView>
            </Grid>
        </GroupBox>
    </Grid>
</TabItem>
